package cool.taomu.toolkit.service.kademlia.utils

import java.security.SecureRandom
import cool.taomu.toolkit.utils.PeerUtils

class KademliaUtils {

    def static createNodeId() {
        PeerUtils.createNodeId()
    }

    def static stringTo160Bit(String string) {
        return PeerUtils.stringToHash(string)
    }
}
